/*    */ package com.zimbra.cs.mailclient.imap;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public abstract class FetchResponseHandler
/*    */   implements ResponseHandler
/*    */ {
/*    */   private boolean dispose;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public FetchResponseHandler(boolean dispose)
/*    */   {
/* 23 */     this.dispose = dispose;
/*    */   }
/*    */   
/*    */   public FetchResponseHandler() {
/* 27 */     this(true);
/*    */   }
/*    */   
/*    */   public void handleResponse(ImapResponse res) throws Exception {
/* 31 */     if (res.getCCode() == CAtom.FETCH) {
/* 32 */       MessageData md = (MessageData)res.getData();
/*    */       try {
/* 34 */         handleFetchResponse(md);
/*    */       } finally {
/* 36 */         if (this.dispose) md.dispose();
/*    */       }
/*    */     }
/*    */   }
/*    */   
/*    */   public abstract void handleFetchResponse(MessageData paramMessageData)
/*    */     throws Exception;
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailclient/imap/FetchResponseHandler.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */